package com.powernode.spring6.bean;

import java.util.Arrays;

/**
 * @Author JiangZhaoFeng
 * @Date 2025/8/5 15:35
 * @Description:  注入数组类型
 */
public class Person {

    private String[] favariteFoods;

    public void setFavariteFoods(String[] favariteFoods){
        this.favariteFoods = favariteFoods;
    }

    @Override
    public String toString() {
        return "Person{" +
                "favariteFoods=" + Arrays.toString(favariteFoods) +
                '}';
    }


}
